<template>
  <div id="app">
    <img alt="Vue logo" :src="img" />
    <h3>vue子应用</h3>
    <p class="link">
      <router-link to="/foo">Go to Foo</router-link>
      <router-link to="/hello">Go to hello</router-link>
    </p>
    <router-view></router-view>
  </div>
</template>

<script>
import img from "./assets/logo.png";
export default {
  name: "App",
  data() {
    return {
      img: img,
    };
  },
  components: {},
};
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
.link {
  width: 300px;
  margin: auto;
  display: flex;
  justify-content: space-between;
}
</style>
